#include "MediaStateMap.h"

namespace tsc
{
namespace mgw
{

MediaStateWaitingForMediaConnection* MediaStateMap::mpStateWaitingForMediaConnection =
        MediaStateWaitingForMediaConnection::instance();

MediaStateEstablished* MediaStateMap::mpStateEstablished =
        MediaStateEstablished::instance();

/*******************************************************************************
 *
 * Constructor
 *
 ******************************************************************************/
MediaStateMap::MediaStateMap()
{

} // MediaStateMap::MediaStateMap

/*******************************************************************************
 *
 * Destructor
 *
 ******************************************************************************/
MediaStateMap::~MediaStateMap()
{

} // MediaStateMap::~MediaStateMap

common::StateBase* MediaStateMap::initialState() const
{
	return mpStateWaitingForMediaConnection;
}

MediaStateMap& MediaStateMap::instance()
{
	static MediaStateMap stateMap;
	return stateMap;
}

} // namespace sgw
} // namespace tsc
